import request from '@/utils/request'
import { microservices } from '@/utils'
export function rootNode (data) {
  return request({
    url: `${microservices.pmsSys}/SysArea/tree`,
    params: { pcode: '1' },
    method: 'get'
  })
}

export function childenNode (pcode) {
  return request({
    url: `${microservices.pmsSys}/SysArea/tree/${pcode}`,
    method: 'get'
  })
}

export function filterByKey (params) {
  return request({
    url: `${microservices.pmsSys}/SysArea/querySysAreaByLevelAndName`,
    params,
    method: 'get'
  })
}
